import history from 'history/browser';
import RootStore from 'store/RootStore';

const useSearchPageLocationInit = (): void => {
    history.listen(({ location }) => RootStore.locationStore.setSearch(location.search));
};

export default useSearchPageLocationInit;
